package com.lakeworks.event;

import com.lakeworks.common.domain.base.event.TicketEvent;
import com.lakeworks.common.domain.ticket.TktTicket;
import com.lakeworks.common.enums.ticket.TicketBackStatus;
import com.lakeworks.domain.vo.TicketBackVo;
import lombok.Data;

import java.time.Instant;

@Data
public class BackTicketEvent extends TicketEvent {

    private static final long serialVersionUID = 1L;

    TicketBackVo ticketBackVo;

    TicketBackStatus ticketBackStatus;


    public BackTicketEvent(TktTicket tktTicket, TicketBackStatus ticketBackStatus, TicketBackVo ticketBackVo, String operator) {
        this.ticketBackVo = ticketBackVo;
        super.setTicket(tktTicket);
        this.ticketBackStatus = ticketBackStatus;
        super.setTimestamp(Instant.now());
        super.setOperator(operator);
    }
}
